import Ele from './Ele'
import AttrParser from "../parser/AttrParser";
export default class AttrEle extends Ele {
    getView () {
        let view = this.ele.outerHTML
        view = view.substring(1,view.search('>'))
        return view
    }
    getParser () {
        return new AttrParser(this.getView(),this.getResolver())
    }
    draw () {
        super.draw()
        this.fn.call(this.subject, this.ele)
    }
    update () {
        this.fn.call(this.subject, this.ele)
    }

}